QT       += core gui widgets

# 使用C++17标准
CONFIG += c++17
# 项目名称和类型
TARGET = Spreadsheet
TEMPLATE = app


SOURCES += \
    formulaevaluator.cpp \
    main.cpp \
    spreadsheetmodel.cpp \
    spreadsheetundocommand.cpp \
    spreadsheetview.cpp \
    spreadsheetwindow.cpp

HEADERS += \
    formulaevaluator.h \
    spreadsheetmodel.h \
    spreadsheetundocommand.h \
    spreadsheetview.h \
    spreadsheetwindow.h
FORMS += \
    Spreadsheetwindow.ui

# 编译配置图标
DISTFILES += app.rc
RC_FILE = app.rc

# # 发布配置
# release {
#     DEFINES += QT_NO_DEBUG_OUTPUT
#     QMAKE_CXXFLAGS_RELEASE += -O2
# }

# 调试配置
debug {
    QMAKE_CXXFLAGS += -g
    QMAKE_CXXFLAGS += -Wall
    QMAKE_CXXFLAGS += -Wextra
}

RESOURCES += \
    res.qrc

# Windows 特定配置
win32 {
    LIBS += -lshell32
}

